using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Widgetsphere.Core.Util
{
	public partial class DirectoryHelper
	{
		private const string APPLICATION_DIRECTORY = "Widgetsphere";
		public static DirectoryInfo GetWidgetsphereAppDirectory()
		{
			string directory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
			directory = StringHelper.EnsureDirectorySeperatorAtEnd(directory) + APPLICATION_DIRECTORY;
			DirectoryInfo di = new DirectoryInfo(directory);
			if (!di.Exists)
				di.Create();
			return di;
		}
	}
}
